/*
 * Copyright (c) 2018-2025 Tencent. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

namespace TencentCloud.Live.V20180801.Models
{
    using Newtonsoft.Json;
    using System.Collections.Generic;
    using TencentCloud.Common;

    public class BackupStreamGroupInfo : AbstractModel
    {
        
        /// <summary>
        /// 流名称。
        /// </summary>
        [JsonProperty("StreamName")]
        public string StreamName{ get; set; }

        /// <summary>
        /// 主备流信息。
        /// </summary>
        [JsonProperty("BackupList")]
        public BackupStreamDetailData[] BackupList{ get; set; }

        /// <summary>
        /// 是否对该流开启了择优调度。
        /// 0 - 未开启。
        /// 1 - 已开启。
        /// </summary>
        [JsonProperty("OptimalEnable")]
        public long? OptimalEnable{ get; set; }

        /// <summary>
        /// 域名分组的分组名称。
        /// </summary>
        [JsonProperty("HostGroupName")]
        public string HostGroupName{ get; set; }


        /// <summary>
        /// For internal usage only. DO NOT USE IT.
        /// </summary>
        public override void ToMap(Dictionary<string, string> map, string prefix)
        {
            this.SetParamSimple(map, prefix + "StreamName", this.StreamName);
            this.SetParamArrayObj(map, prefix + "BackupList.", this.BackupList);
            this.SetParamSimple(map, prefix + "OptimalEnable", this.OptimalEnable);
            this.SetParamSimple(map, prefix + "HostGroupName", this.HostGroupName);
        }
    }
}

